package com.foreknow.demo5;

/**
 * 匿名对象
 */
public class AnysDemo {

    public Employee a() {
        return new Employee();
    }

    public static void main(String[] args) {
        Employee e = new Employee();
        e.setName("tom");
        e.setEid("10001");

        //匿名对象的写法
        new Employee().setName("fender");
        new Employee().getName().length();
    }
}
